import { BasicPageParams } from '@/api/model/baseModel';

export type GetDeptPageListReq = BasicPageParams & {
  kw?: string;
  status?: number;
};

export interface CreateDeptReq {
  role_name: string;
  parent_id: number;
  sort: number;
  status: number;
  remark?: string;
}

export interface UpdateDeptReq extends CreateDeptReq {
  dept_id: number;
}

export interface DeptTreeListItem {
  dept_id: number;
  dept_name: string;
  sort: number;
  remark: string;
  status: number;
  parent_id: number;
  created_at: string;
  updated_at: string;
  children?: DeptTreeListItem[];
}

export type GetDeptTreeListRes = DeptTreeListItem[];
